]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Properly allocate workspaces
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jun 2020 14:04:44 +0000 (16:04 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 6 Jul 2020 22:06:53 +0000 (00:06 +0200)
commit96f63b08c245cacd48d8186204fd4c1a6921319a
tree55a0daa38810feca8d100253c242ca320979e693
parentd66cd0d2067ae2501b17021b50ee32cbc638a3b7
workspacesView: Properly allocate workspaces

So far we've been allocating workspaces in a stack, and relied on
translation to move them to the right position. And as the position
depends on both the workspace's index and the view's viewport, some
care is needed to prevent gestures/scrolling from interfering with
layout updates.

Clean that up by properly allocating workspaces in a row or column,
and use a translation to reflect the current scroll position.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1345
js/ui/workspacesView.js